package org.jeecg.modules.cloud.xxljob;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Slf4j
public class PzzJobHandler {

    /**
     * 测试定时任务 xxl-job
     * @param params
     * @return
     */
    @XxlJob(value = "pzzJob")
    public ReturnT<String> pzzJob(String params) {
        log.info(""+params);
        log.info("pzz:这是一条定时任务......当前时间是"+new Date());
        return ReturnT.SUCCESS;
    }
}
